From: Jan D. Date: Sat, 10 Dec 2011 22:53:28 +0000 (+0100) Subject: * src/xterm.c (x_term_init): Move call to gdk_window_add_filter before X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~1386 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=9bc177927f1d0c9c06f630f0ba4bbde9a41d1be5;p=emacs.git * src/xterm.c (x_term_init): Move call to gdk_window_add_filter before gtk_init. --- diff --git a/src/ChangeLog b/src/ChangeLog index 590b30b9537..926871cb969 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2011-12-10 Jan Djärv + + * xterm.c (x_term_init): Move call to gdk_window_add_filter before + gtk_init (Bug#10100). + 2011-12-10 Eli Zaretskii * xdisp.c (RECORD_MAX_MIN_POS): Use IT->cmp_it.charpos only if diff --git a/src/xterm.c b/src/xterm.c index abe52238415..1f995b3c1a0 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -9961,6 +9961,11 @@ x_term_init (Lisp_Object display_name, char *xrm_option, char *resource_name) https://bugzilla.gnome.org/show_bug.cgi?id=563627. */ id = g_log_set_handler ("GLib", G_LOG_LEVEL_WARNING | G_LOG_FLAG_FATAL | G_LOG_FLAG_RECURSION, my_log_handler, NULL); + + /* NULL window -> events for all windows go to our function. + Call before gtk_init so Gtk+ event filters comes after our. */ + gdk_window_add_filter (NULL, event_handler_gdk, NULL); + gtk_init (&argc, &argv2); g_log_remove_handler ("GLib", id); @@ -9970,9 +9975,6 @@ x_term_init (Lisp_Object display_name, char *xrm_option, char *resource_name) dpy = DEFAULT_GDK_DISPLAY (); - /* NULL window -> events for all windows go to our function */ - gdk_window_add_filter (NULL, event_handler_gdk, NULL); - #if GTK_MAJOR_VERSION <= 2 && GTK_MINOR_VERSION <= 90 /* Load our own gtkrc if it exists. */ {